//
//  UIImage+XMMessageImage.h
//  XMKit
//
//  Created by chenming on 2017/12/22.
//  Copyright © 2017年 ChenXiaoMing. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (XMMessageImage)

@property (nonatomic, assign) BOOL xm_isDecoded;

/**
 Message tip icon
 @param count     message count
 @param imageSize imageSize
 @param tipRadius tipRadius
 @param tipTop    topMargin
 @param tipRight  rightMargin
 @param fontSize  tipTextFontSize
 @param textColor tipTextColor
 @param tipColor  tipBackgroundColor
 @return New image with tip count in the top-right corner
 */
- (instancetype)xm_messageImageWithCount:(NSInteger)count imageSize:(CGSize)imageSize tipRadius:(CGFloat)tipRadius tipTop:(CGFloat)tipTop tipRight:(CGFloat)tipRight fontSize:(CGFloat)fontSize textColor:(UIColor *)textColor tipColor:(UIColor *)tipColor;

@end
